-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug t radiative #2560
Bug t radiative #2560
Conversation
tardis/model/parse_input.py
Outdated
lambda_wien_inner | ||
* (1 + (geometry.v_middle - geometry.v_inner_boundary) / const.c) | ||
t_radiative = packet_source.temperature / ( | ||
(1 - (geometry.v_middle - geometry.v_inner_boundary) / const.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation is incorrect here: the 1 -
should be 1 +
because temperature should decrease further out. The other change (packet_source.temperature) is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can modify the documentation to fix the sign of the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes !!! That makes sense. I will change the documentation and will redo this change to the original.
Thanks for spotting the duplication of the packet initialization, I have opened an issue #2585 and our team members will look into this further. Feel free to dive deeper if you are interested as well! |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@andrewfullard I have made the necessary changes. The changes that I have made till now.
|
It seems that the suggestions by black installed through |
Sorry for all those commits. I am still trying to figure out how branching works in Git, and hopefully, I will not repeat the same mistake. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2560 +/- ##
==========================================
- Coverage 67.18% 67.18% -0.01%
==========================================
Files 173 173
Lines 14570 14569 -1
==========================================
- Hits 9789 9788 -1
Misses 4781 4781 ☔ View full report in Codecov by Sentry. |
Make sure you use the version of black that is installed with the TARDIS environment |
*beep* *bop* Hi, human. The Click here to see your results. |
📝 Description
Type: 🪲
bugfix
| memo:documentation
ref. https://tardis-sn.github.io/tardis/physics/setup/model.html#Temperatures
tardis/tardis/model/parse_input.py
Lines 726 to 731 in 1718002
The code doesn't match with the documentation. So, I have changed it accordingly.
I have directly used
packet_source.temperature
rather than first computinglambda_wien_inner
Slight documentation typos:
The documentation string of
parse_structure_config
was repeated twice, so I removed the extra one.Also, there were some instances where
v_inner, v_outer
were labeled asr_inner, r_outer
. So, I have changed them as well.Also, If we pass
packet_source
as one of the function arguments, why define it again in the body?tardis/tardis/model/parse_input.py
Lines 589 to 618 in 1718002
📌 Resources
Examples, notebooks, and links to useful references.
🚦 Testing
How did you test these changes?
☑️ Checklist
build_docs
label